package opp.Demo01;

public class Application {
    public static void main(String[] args) {
        //类：抽象的，实例化
       Student xiaoming =  new Student();
       Student xiaohong =  new Student();
       xiaoming.name = "小明";
       xiaoming.age = 18;
       System.out.println(xiaoming.name);
       System.out.println(xiaoming.age);
    }
}


/**
 * public class Student {
 *         //属性：字段
 *         String name;
 *         int age;
 *     //方法
 *     public void study(){
 *         System.out.println(this.name+"在学习");
 *     }
 * }
 */